import  type { LoginRes, LoginParams, Profile } from "@/types/user"
import { request } from "@/utils/reuqest"

// 登录接口封装
export const loginAPI=(data:LoginParams)=>{
    // 返回promise
    return request<LoginRes>('/park/login','POST',data)
}
/**
 * @description: 获取用户信息
 * @param {*} data {}
 * @return {*} promise
 */
export const getProfileAPI=()=>{
    // 返回promise
    return request<Profile>('/park/user/profile')
}
